package com.macro.sms.constants;

import lombok.Getter;

/**
 * @author ：小海
 * @dete ：2021-03-22 06:11:47
 * @Describe : 统一返回码定义枚举类
 */
@Getter
public enum  ResultCodeEnum {


    SUCCESS(true, 20000,"成功"),
    UNKNOWN_REASON(false, 20001, "未知错误");


    private Boolean success;

    private Integer code;

    private String message;

    private ResultCodeEnum(Boolean success, Integer code, String message) {
        this.success = success;
        this.code = code;
        this.message = message;
    }
}
